//
//  CCButton.h
//  uicocos
//
//  Created by Serhiy Otroshchenko on 8/11/11.
//  Copyright 2011 sotrosh. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "cocos2d.h"
#import "CCEnums.h"
#import "CCLabel.h"


@interface CCButton : CCLayer <CCStandardTouchDelegate> {

    NSMutableDictionary *sprites;
    NSMutableDictionary *titles;
    
    CCLabel *currentTitle;
    CCSprite *currentSprite;
    
    BOOL disabled;
    BOOL highlighted;
}

- (id)initWithFrame:(CGRect)aFrame;

- (void)setSprite:(CCSprite *)aSprite forState:(CCControlState)aState;
- (void)setTitle:(NSString *)aTitle forState:(CCControlState)aState;

@property (nonatomic, assign) BOOL disabled;
@property (nonatomic, assign) BOOL highlighted;

@end
